package com.xc.tjise.TJISE.day06;
import java.util.ArrayList;
public class MyArrayList extends ArrayList{
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        System.out.println(myArrayList.size());
        myArrayList.removeRange(1, 4);       //从这个列表中删除所有索引在 1 （含）和 4之间的元素。
        System.out.println(myArrayList.size());
        myArrayList.set(0, 100);
        System.out.println(myArrayList.get(0));
    }
}
